package com.project.livetv.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.List;

/**
 * Created by Administrator on 2016/05/10/0010.
 * ListView 适配器
 */
public abstract class MyBaseAdapterForList<T>  extends BaseAdapter{
    protected List<T> mDatas;
    protected Context mContext;

    public MyBaseAdapterForList(List<T> mDatas, Context mContext) {
        this.mDatas = mDatas;
        this.mContext = mContext;
    }

    @Override
    public int getCount() {
        return 20;
    }

    @Override
    public Object getItem(int position) {
       // return mDatas.get(position);
        return "hah"+position;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    public abstract View getView(int position, View convertView, ViewGroup parent) ;
}
